package com.by.course.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseLesson implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "项目小节课程ID")
    private Long id;

    @ApiModelProperty(value = "项目ID")
    private Long courseId;

    @ApiModelProperty(value = "项目小节课程名")
    private String title;

    @ApiModelProperty(value = "章节顺序")
    private Integer sequence;

    @ApiModelProperty(value = "课程时长")
    private Integer duration;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "项目小节课程描述")
    private String description;

    private static final long serialVersionUID = 1L;
}